home *** CD-ROM | disk | FTP | other *** search
/ PC Master 5 / PC MASTER 5.iso / INTERNET / KIT / WIN95 / MSIE30.EXE / ieakjava.exe / classr.exe / com / ms / awt / CaretX.class (.txt) next >
Encoding:
Java Class File  |  1997-01-31  |  1.1 KB  |  63 lines

  1. package com.ms.awt;
  2.  
  3. import com.ms.awt.peer.ComponentPeerX;
  4. import java.awt.Component;
  5. import java.awt.Point;
  6. import java.awt.peer.ComponentPeer;
  7.  
  8. public class CaretX {
  9.    private Component theComponent;
  10.    private int hwnd;
  11.    private boolean visible;
  12.    private int width;
  13.    private int height;
  14.    // $FF: renamed from: x int
  15.    private int field_0;
  16.    // $FF: renamed from: y int
  17.    private int field_1;
  18.  
  19.    public void hide() {
  20.       this.visible = false;
  21.       this.pHide(this.hwnd);
  22.    }
  23.  
  24.    public CaretX(Component var1, int var2, int var3) {
  25.       this.theComponent = var1;
  26.       ComponentPeer var4 = var1.getPeer();
  27.       ComponentPeerX var5 = (ComponentPeerX)var4;
  28.       this.hwnd = var5.gethwnd();
  29.       this.width = var2;
  30.       this.height = var3;
  31.       this.pCreate(this.hwnd, var2, var3);
  32.    }
  33.  
  34.    public void finalize() {
  35.       this.pDispose();
  36.    }
  37.  
  38.    private native void pSetPos(int var1, int var2);
  39.  
  40.    public void setPos(Point var1) {
  41.       this.setPos(var1.x, var1.y);
  42.    }
  43.  
  44.    public void setPos(int var1, int var2) {
  45.       this.field_0 = var1;
  46.       this.field_1 = var2;
  47.       this.pSetPos(this.field_0, this.field_1);
  48.    }
  49.  
  50.    private native void pDispose();
  51.  
  52.    private native void pShow(int var1);
  53.  
  54.    public void show() {
  55.       this.visible = true;
  56.       this.pShow(this.hwnd);
  57.    }
  58.  
  59.    private native void pCreate(int var1, int var2, int var3);
  60.  
  61.    private native void pHide(int var1);
  62. }
  63.